import request from '@/utils/request'

//货物出仓
export function listwarehouseProperty(data, params) {
    return request({
        url: '/storage/hqzy/list',
        method: 'post',
        data: data,
        params:params
    })
}

//货权转移->添加货权转移单->选择旧货权人#权限标识：zhcloud:hqzy:list
export function selectWarehousePropertyO(data) {
    return request({
        url: '/storage/hqzy/toJHQR',
        method: 'post',
        data: data
    })
}

//货权转移->添加货权转移单->选择新货权人#权限标识：zhcloud:hqzy:list
export function selectWarehousePropertyX(data) {
    return request({
        url: '/storage/hqzy/toXHQR',
        method: 'post',
        data: data
    })
}

//货权转移->【详细->审核】/批量审核#权限标识：zhcloud:hqzy:audit
export function warehousePropertyAudit(data) {
    return request({
        url: '/storage/hqzy/audit',
        method: 'post',
        data: data
    })
}

//货权转移->添加货权转移单->选择新货权人#权限标识：zhcloud:hqzy:list
export function warehousePropertyXSelect(data, params) {
    return request({
        url: '/storage/hqzy/toXHQR',
        method: 'post',
        data: data,
        params:params
    })
}

//货权转移->添加货权转移单->选择旧货权人#权限标识：zhcloud:hqzy:list
export function warehousePropertyOSelect(data,params) {
    return request({
        url: '/storage/hqzy/toJHQR',
        method: 'post',
        data: data,
        params:params
    })
}


//货权转移->【添加货权转移单->【选择旧货权人->选择库存】/选择库存】/【详细->添加货权转移单->选择库存】#权限标识：zhcloud:hqzy:list
export function warehousePropertyOList(data,params) {
    return request({
        url: '/storage/hqzy/toXZKC',
        method: 'post',
        data: data,
        params:params
    })
}

//货权转移->详细->添加货权转移单->提交
export function warehousePropertySubmit(data) {
    return request({
        url: '/storage/hqzy/submit',
        method: 'post',
        data: data,
    })
}

//货权转移->详细->添加货权转移单->提交
export function warehousePropertyAdd(data) {
    return request({
        url: '/storage/hqzy/add',
        method: 'post',
        data: data,
    })
}


//货权转移->详细->驳回#权限标识：zhcloud:hqzy:reject
export function warehousePropertyReject(data) {
    return request({
        url: `/storage/hqzy/reject/${data.dzid}`,
        method: 'post',
        data: data,
    })
}


//货权转移->详细->删除#权限标识：zhcloud:hqzy:del
export function warehousePropertyDelete(data) {
    return request({
        url: '/storage/hqzy/del',
        method: 'post',
        data: data,
    })
}

//
export function warehousePropertyMoveAddDetail(data) {
    return request({
        url: `/storage/hqzy/toTJHQZYD/${data.khid}`,
        method: 'post',
        data: data,
    })
}

//货权转移->详细->添加货权转移单#权限标识：zhcloud:hqzy:detail
export function getWarehousePropertyMoveDetail(data) {
    return request({
        url: `/storage/hqzy/detail/${data.dzid}`,
        method: 'post',
        data: data,
    })
}

//货权转移->详细->修改->修改#权限标识：zhcloud:hqzy:modify
export function warehousePropertyModify(data) {
    return request({
        url: '/storage/hqzy/modify',
        method: 'post',
        data: data,
    })
}


//货权转移总览#权限标识：zhcloud:hqzy:list
export function warehousePropertyOverview(data, params) {
    return request({
        url: '/storage/hqzy/overview',
        method: 'post',
        data: data,
        params:params
    })
}

//货权转移总览->已删除记录#权限标识：zhcloud:hqzy:list
export function warehousePropertyOverviewRecordDeleted(data, params) {
    return request({
        url: '/storage/hqzy/recordDeleted',
        method: 'post',
        data: data,
        params:params
    })
}

//货权转移->添加货权转移单->刷新#权限标识：zhcloud:hqzy:detail
export function warehousePropertyDetailRefresh(data) {
    return request({
        url: `/storage/hqzy/refresh/${data.khid}`,
        method: 'post',
        data: data,
    })
}


//货权转移->添加货权转移单->刷新#权限标识：zhcloud:hqzy:detail
export function warehousePropertyModifyRemark(data) {
    return request({
        url: '/storage/hqzy/modifyRemark',
        method: 'post',
        data: data,
    })
}


//货权转移->打印#权限标识：zhcloud:hqzy:print
export function getWarehousePropertyPrint(data) {
    return request({
      url: `/storage/hqzy/print/${data.dzid}`,
      method: 'post',
      data: data
    })
}













